package zhongbo.java.air.flightpath.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("航迹信息")
@TableName("air_flight_path")
public class FlightPath {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("UUID主键")
    private String id;
    @ApiModelProperty("关联飞机ICAO码")
    @TableField("icao_code")
    private String icaoCode;
    @ApiModelProperty("时间戳")
    @TableField("timestamp")
    private Date timestamp;
    @ApiModelProperty("纬度")
    @TableField("latitude")
    private double latitude;
    @ApiModelProperty("经度")
    @TableField("longitude")
    private double longitude;
    @ApiModelProperty("海拔")
    @TableField("altitude")
    private Integer altitude;
    @ApiModelProperty("地速")
    @TableField("speed")
    private String speed;
    @ApiModelProperty("航向角")
    @TableField("heading")
    private Short heading;
    @ApiModelProperty("数据源类型")
    @TableField("source_type")
    public String sourceType;
}
